import {
    typeClassName
} from '@/pages/config/classNameMap';
const equipmentSafeGuardPlan_className = typeClassName['equipmentSafeGuardPlan'].className; // 设备维护计划管理
const equipSafeGuardParam_className = typeClassName['equipSafeGuardParam'].className; // 设备维护项

/**
 *
 * @param {*} className 当前数据的className
 * @param {*} selectClassName 要绑定项的className
 * @param {*} data 要绑定项的data
 */
export function filterSelectData (className, selectClassName) {
    // 1、设备维护计划管理中只能绑定保养类型的维护项
    if (className === equipmentSafeGuardPlan_className &&
        selectClassName === equipSafeGuardParam_className) {
            return function (data = []) {
                return data.filter(d => d['category'] === '保养')
            }
        }
}
